passthrough: release assigned PCI devices earlier during domain shutdown
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2012 10:46:32 +0000 (11:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2012 10:46:32 +0000 (11:46 +0100)
commita8078b02351eb5085afb1941175bb3977863e849
treed4dd3e2617c368507152d1af19ea7d448bbc268b
parente1dc98e3c3619cf7a050cc898ecb9288eceb5915
passthrough: release assigned PCI devices earlier during domain shutdown

At least with xend, where there's not even a tool stack side attempt to
de-assign devices during domain shutdown, this allows immediate re-
starts of a domain to work reliably. (There's no apparent reason why
c/s 18010:c1577f094ae4 chose to put this in the asynchronous part of
domain destruction).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/ia64/xen/domain.c
xen/arch/x86/domain.c
xen/drivers/passthrough/iommu.c